<div class="layui-fluid" id="VIEW-list-table" lay-title="业务人员">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-md12">
            
            <div class="layui-card">
                <div class="layui-card-body">
                    <table lay-filter="lig-staSalesman-table"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['admin', 'table', 'form', 'dropdown', 'laytpl', 'jquery','lig'], function (admin, table, form, dropdown, laytpl, $, lig) {
        form.render();

        lig.table({
            elem: '[lay-filter="lig-staSalesman-table"]',
            url: 'bu/statistic/salesman',
            cols: [[
                { title: '业务员', field: 'salesmanName', width: 140 },
                { title: '分配客户数', field: 'customerCount', minWidth: 100 },
                { title: '意向客户数', field: 'potentialCount', minWidth: 100 },
                { title: '申贷客户数', field: 'creditingCount', minWidth: 100 },
                { title: '放款客户数', field: 'creditedCount', minWidth: 100 },
                { title: '金额', field: 'amount', minWidth: 100 }

            ]],
            page: false
        },{
            mode:'dialog',
            entity: '',
            primaryField: 'id',
            addContent: '',
            addUrl: '',
            addTitle: '',
            area: ['50%', 'auto'],
            onAddOpened: function() {
            },

            modifyContent: '',
            modifyUrl: '',
            modifyTitle: '',
            area: ['50%', 'auto'],
            onModifyOpened: function() {
            },

            removeUrl: '',
            getUrl: ''
        });

    })
</script>